﻿using ETask.Api.Dtos;
using ETask.Api.Models;

namespace ETask.Api.Repositories
{
    public interface IProjectRepository : IRepository<Project>
    {
        Task<PagedResult<ProjectDto>> GetListAsync(ProjectListParams listParams);

        Task<int> AddUserListAsync(List<ProjectMember> list);

        Task<int> DelProjectUserById(int id);

        Task<List<ProjectMemberDto>> GetProjectMembers(int projectId);

        Task<ProjectMember> GetMemberById(int id);

        Task<int> UpdateProjectUser(ProjectMember member);

        Task<bool> CheckMemberExists(int projectId, int userId);

    }
}
